using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace ShopForWeb.Model.Basic
{
   [Table("T_Advertisement")] 
   public partial class Advertisement
 {
    /// <summary>
    /// 管理员ID，外键
    /// </summary>
[ForeignKey("AdminId")]
  public long AdminId { get; set; }

    /// <summary>
    /// 广告内容
    /// </summary>
[StringLength(50)]
   public string AdvertisementCont { get; set; } = "";

    /// <summary>
    /// 广告ID，自增
    /// </summary>
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
    public long AdvertisementId { get; set; }

    /// <summary>
    /// 顺序
    /// </summary>
   [StringLength(30)]
   public string OrderCode { get; set; } = "";

    /// <summary>
    /// 单位 ID，外键
    /// </summary>
[ForeignKey("PartnerId")]
   public long PartnerId { get; set; }

    /// <summary>
    /// 图片
    /// </summary>
[StringLength(30)]
   public string Photo { get; set; } = "";

    /// <summary>
    /// 状态
    /// </summary>

   public long StatusCode { get; set; } = 1;
    }
}